


clear classes

Exp = simplified_PTB();
Exp.scn.res = 6;
Exp.scn.w = 1600;
Exp.scn.h = 1200;
Exp.fix.x = -.75;

% Speed in degrees per second when the stimulus crosses, the derivation is
% relatively complicated

v = [10,14,18,22];
speeds = (360./v) * ((Exp.scn.wcm/2)*abs(Exp.fix.x)*Exp.refresh_rate)/Exp.view_dist;

Exp.FpClearn = speeds;
Exp.pauses = 8;
Exp.num_trials = 8;
Exp.num_blocks = 6;
Exp.stim.size = 10;

% Changes the amplitude of the movement from 0.9 Screens to 0.8 screens

Exp.prepareTrialTypes()
Exp.prepareFixation()
Exp.prepareOccluder(6/16*abs(Exp.scn.w*Exp.fix.x),[0 1]*((Exp.scn.w*Exp.fix.x)/2) );
Exp.prepareSpeeds()
Exp.prepareJump()
Exp.stimuli = inline('cos(x) + 0.03*cos(x*30.5) + 0.05*cos(x*25.2) + 0.02*cos(x*35.2) + 0.01*cos(x*40.2) ','x');

Exp.Eyelink = 0;

try 
    %Exp.runScreen()
catch Err
    Eyelink('Shutdown')
    Screen('CloseAll');
    rethrow(Err)
end
    
